﻿using System.ComponentModel.DataAnnotations;

namespace Manon.Repository
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="TId"></typeparam>
    public interface IBaseEntity<TId>
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [Key]
        TId Id { get; set; }
    }


    /// <summary>
    /// 
    /// </summary>
    public interface IBaseEntity : IBaseEntity<int>
    {

    }


}
